//
//  VerifyCardViewController.m
//  YTwallet
//
//  Created by ZhangLin on 2019/3/29.
//  Copyright © 2019年 hadrlog. All rights reserved.
//

#import "VerifyCardViewController.h"
#import "VerifyCardView.h"
#import "PayResultViewController.h"

@interface VerifyCardViewController ()
@property(nonatomic,strong)VerifyCardView *vv;
@property(nonatomic,strong)UIButton *nextStypeBtn;

@end

@implementation VerifyCardViewController

-(void)loadView
{
    [super loadView];
    self.vv = [[VerifyCardView alloc] initWithFrame:self.view.bounds];
    self.view = self.vv;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"验证绑定付款卡";
    self.view.backgroundColor = ETColorWithRGB(242, 244, 246);
    //确认收款
    [self createNextStype];
}

-(void)createNextStype
{
    self.nextStypeBtn = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.nextStypeBtn.backgroundColor = [UIColor colorWithRed:91 / 255.0 green:113 / 255.0 blue:255 / 255.9 alpha:1];
    [self.nextStypeBtn setTitle:@"确认收款" forState:(UIControlStateNormal)];
    [self.nextStypeBtn setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    self.nextStypeBtn.titleLabel.font = [UIFont systemFontOfSize:16];
    self.nextStypeBtn.frame = CGRectMake(0, self.view.frame.size.height - ETTopHeight - ETTabBarArcHeight - 44, self.view.frame.size.width, 44);
    [self.view addSubview:self.nextStypeBtn];
    [self.nextStypeBtn addTarget:self action:@selector(nextStypeBtnAction) forControlEvents:(UIControlEventTouchUpInside)];
}
-(void)nextStypeBtnAction
{
    NSLog(@"点击确认收款");
    PayResultViewController *payVC = [[PayResultViewController alloc] init];
    [self.navigationController pushViewController:payVC animated:YES];
}

@end
